Change Email for User
PUT /api/v1/users/{userId}/tenants/{tenantId}/change-email
Description
Change the email address for a user in a specific tenant.
Path Parameters
| Name | Type | Description |
|---|---|---|
userId | string | The user ID (path) |
tenantId | string | The tenant ID (path) |
Query Parameters
| Name | Type | Description |
|---|---|---|
password | string | Current account password (query) |
phone | string | Current account phone number (query) |
email | string | New email to change for the account (query) |
Request Body
- Content Type: None
Example
PUT /api/v1/users/{userId}/tenants/{tenantId}/change-email?password=currentPassword&phone=currentPhoneNumber&email=newEmail
Response Code: 200 - OK
Description
Email changed successfully.
Response Fields
The response does not contain any specific fields.
Method: PUT
>http://your-api-url/api/v1/users/{userId}/tenants/{tenantId}/change-email?password=currentPassword&phone=currentPhoneNumber&email=newEmail
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /api/v1/users/{userId}/tenants/{tenantId}/change-email \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!